﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Site1.Master" AutoEventWireup="true" CodeBehind="Pay_Course.aspx.cs" Inherits="ES_Project.Pages.WebForm177"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" href="js/js/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" />	
<link type="text/css" href="js/js/css/jquery.timeentry.css" rel="stylesheet" />
  <script type="text/javascript" src="js/js/jquery-1.4.4.min.js"></script>
  <script type="text/javascript" src="js/js/jquery-ui-1.8.10.offset.datepicker.min.js"></script>
  <script type="text/javascript" src="js/js/jquery.datepick-th.js"></script>
  <script type="text/javascript" src="js/js/jquery-ui-timepicker-addon.js"></script>
  <script type="text/javascript" src="js/js/jquery.timeentry.js"></script>
  <script type="text/javascript" src="js/js/jquery.timeentry.min.js"></script>
  <script type="text/javascript" src="js/js/jquery.timeentry.pack.js"></script>
    <style type="text/css">
table{font-size:inherit;margin-top: 0px;
    color: #000000;
}
TABLE {
	MARGIN-BOTTOM: 0px
}
        .style3
        {
            width: 59px;
        }
        .style4
        {
            width: 1167px;
        }
    .DNNAlignright {
	TEXT-ALIGN: right
}
select,input,button,textarea,button{font:99% arial,helvetica,clean,sans-serif;}
INPUT {
	FONT: 700 small normal normal arial, helvetica, clean, sans-serif; COLOR: #057cc4; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px;
    text-align: left;
            margin-top: 0px;
        }
SELECT {
	FONT: 700 small normal normal arial, helvetica, clean, sans-serif; COLOR: #057cc4; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px
}
TEXTAREA {
	FONT: 700 small normal normal arial, helvetica, clean, sans-serif; COLOR: #057cc4; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px
}
TH {
	FONT-FAMILY: Tahoma, Arial, Helvetica; COLOR: #003366; FONT-SIZE: 12px; VERTICAL-ALIGN: baseline; FONT-WEIGHT: bold
}
        .style15
        {
            width: 100%;
        }
        .style19
        {
            width: 47px;
        }
        .style20
        {
            width: 1167px;
            font-size: small;
        }
        .style24
        {
            font-size: small;
            font-weight: bold;
            text-align: right;
            width: 95px;
        }
        .style27
        {
            width: 207px;
        }
        .style37
        {
            width: 59px;
            height: 46px;
        }
        .style38
        {
            width: 1167px;
            height: 46px;
        }
        .style39
        {
            width: 47px;
            height: 46px;
        }
        .style42
        {
            font-size: small;
            text-align: right;
            width: 166px;
            font-weight: 700;
            height: 22px;
        }
        .style44
        {
            font-size: small;
            text-align: right;
            width: 185px;
            height: 22px;
        }
        .style46
        {
            font-size: small;
            font-weight: bold;
            text-align: right;
            width: 205px;
            height: 22px;
        }
        .style47
        {
            height: 22px;
        }
        .style48
        {
            font-size: small;
            text-align: right;
            width: 166px;
            font-weight: 700;
            height: 13px;
        }
        .style50
        {
            font-size: small;
            text-align: right;
            width: 185px;
            height: 13px;
            font-weight: 700;
        }
        .style52
        {
            font-size: small;
            font-weight: bold;
            text-align: left;
            width: 205px;
            height: 13px;
        }
        .style53
        {
            height: 13px;
        }
        .style62
        {
            color: #FF0000;
        }
        .style63
        {
            font-size: small;
            text-align: right;
            width: 166px;
            font-weight: 700;
        }
        .style71
        {
            width: 145px;
            height: 13px;
        }
        .style73
        {
            font-weight: 700;
        }
        .style84
        {
            width: 145px;
            font-weight: 700;
            text-align: left;
            height: 21px;
        }
        .style90
        {
            font-size: small;
            text-align: right;
            width: 166px;
            font-weight: 700;
            height: 21px;
        }
        .style93
        {
            height: 21px;
        }
        .style94
        {
            width: 59px;
            height: 5px;
        }
        .style95
        {
            width: 1167px;
            height: 5px;
        }
        .style96
        {
            width: 47px;
            height: 5px;
        }
        .style98
        {
            width: 1167px;
            font-size: small;
            height: 5px;
            font-weight: 700;
        }
        .style100
        {
            font-weight: normal;
        }
        .style104
        {
            font-size: small;
            font-weight: bold;
            text-align: right;
            width: 205px;
        }
        .style105
        {
            font-size: small;
            font-weight: bold;
            text-align: right;
            width: 205px;
            height: 21px;
        }
        .style106
        {
            width: 145px;
            font-weight: 700;
            text-align: left;
        }
        .style107
        {
            width: 145px;
            height: 22px;
        }
        .style123
        {
            font-size: small;
            text-align: right;
            height: 13px;
            font-weight: 700;
        }
        .style124
        {
            font-size: small;
            text-align: right;
            width: 54px;
            height: 22px;
        }
        .style148
        {
            width: 122px;
            height: 22px;
        }
        .style151
        {
            font-size: small;
            text-align: left;
            width: 185px;
            font-weight: 700;
        }
        .style152
        {
            font-size: small;
            text-align: left;
            width: 185px;
            font-weight: 700;
            height: 21px;
        }
        .style155
        {
            width: 122px;
        }
        .style156
        {
            width: 122px;
            height: 21px;
        }
        .style159
        {
            font-size: small;
            text-align: right;
            width: 68px;
            font-weight: 700;
        }
        .style160
        {
            font-size: small;
            width: 68px;
            font-weight: 700;
            height: 21px;
        }
        .style161
        {
            font-size: small;
            text-align: right;
            width: 54px;
            font-weight: 700;
        }
        .style162
        {
            font-size: small;
            width: 54px;
            font-weight: 700;
            height: 21px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server" >
 

        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <script type="text/javascript">

            $(Sys.Application.add_load(function () {

                // alert();
                $("#ContentPlaceHolder1_payCode").focusout(function () {
                    //  alert("fdfdf");
                    document.getElementById('ContentPlaceHolder1_CMD_PayCode').click();
                })
                //$('#ContentPlaceHolder1_empClsStart').timepicker({});
            }));
    </script>
    <script type ="text/javascript">
        function gotoButton(e) {
            var keyPressed;
            if (window.event) {
                keyPressed = window.event.keyCode; // IE
                if (keyPressed == 13) {


                    //  document.getElementById("CMD_AgentCode").focus();
                    document.getElementById('ContentPlaceHolder1_CMD_PayCode').click();
                }

            } else {
                keyPressed = e.which; // Firefox
                if (keyPressed == 13) {
                    document.getElementById('ContentPlaceHolder1_CMD_PayCode').click();
                    //document.getElementById("CMD_AgentCode").focus();
                }

            }
        }

        function chButton() {

            if (document.getElementById("ContentPlaceHolder1_payCode").value == "") {
                alert("กรุณาระบุรหัสครูเพื่อค้นหาครูผู้สอน");
                //document.getElementById("AgentCode").focus();
                return (false);
            }
            if (document.getElementById("ContentPlaceHolder1_payCode").value.length != 2) {
                //alert("กรุณาระบุรหัสตัวแทนให้ครบ 6 หลัก");
                document.getElementById("ContentPlaceHolder1_payId").focus();
                return (false);
            }



            return true;

        }
        function validate() {
           // alert(document.getElementById("ContentPlaceHolder1_empCode").value);
            if (document.getElementById("ContentPlaceHolder1_payCode").value == "") {
                alert('กรุณากรอกรหัสชำระเงิน');
                return false;
            }
            
            
            return true;

        }
        
        
    </script> 
    <script type="text/javascript">
    function dateShow(){
        var date = new Date();
        var d = date.getDate();
        var day = (d < 10) ? '0' + d : d;
        var m = date.getMonth() + 1;
        var month = (m < 10) ? '0' + m : m;
        var yy = date.getYear();
        var year = (yy < 1000) ? yy + 1900 : yy;

       // document.write(day + "/" + month + "/" + year);
        var dateShow = (day + "/" + month + "/" + year);
        document.getElementById('ContentPlaceHolder1_payDate').value = dateShow;
        {
    </script>

    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"  >
    <%--OnLoad = "showYear"--%>
        <ContentTemplate>
            <table cellpadding="0" cellspacing="0" class="style2">
                <tr>
                    <td class="style37">
                        </td>
                    <td class="style38">
                        <strong>อัตราการรับเงิน</strong></td>
                    <td class="style39">
                        </td>
                </tr>
                <tr>
                    <td class="style3">
                        &nbsp;</td>
                    <td class="style4">
                        &nbsp;</td>
                    <td class="style19">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style3">
                        &nbsp;</td>
                    <td class="style4">
                        <table cellpadding="0" cellspacing="0" class="style15">
                            <tr>
                                <td class="style48">
                                    <strong>รหัสจ่ายเงิน :</strong></td>
                                <td class="style71">
                                    <asp:TextBox ID="requestEmpId" runat="server" style="display:none"></asp:TextBox>
                                    <asp:TextBox ID="emp_id" runat="server" style="display:none"></asp:TextBox>
                                    <asp:TextBox ID="payCode" runat="server" onkeydown="gotoButton(event)"   onkeypress ="gotoButton(event)" Width="90px"></asp:TextBox>
                                    <span class="style62">*</span>
                                    <%--<asp:Button ID="CMD_PayCode" runat="server" onclick="CMD_PayCode_Click" OnClientClick="return chButton()" 
                                      Text="ค้นหา" CssClass="stylebutton" style="display:none"/>--%>
                                    &nbsp;</td>
                                    <asp:TextBox ID="pay_id" runat="server" style="display:none"></asp:TextBox>
                                    <asp:TextBox ID="pay_type" runat="server"  Width="90px" style="display:none"></asp:TextBox>
                                <td class="style50">
                                    <strong>รายละเอียดจ่ายเงิน :</strong></td>
                                <td class="style123" colspan="2">
                                    <asp:TextBox ID="payDesc" runat="server" Width="208px" ReadOnly="true"></asp:TextBox>
                                </td>
                                <td class="style52">
                                    &nbsp;</td>
                                <td class="style53">
                                    </td>
                            </tr>
                            <tr>
                                <td class="style42">
                                    </td>
                                <td class="style107">
                                    </td>
                                <td class="style44">
                                    </td>
                                <td class="style124">
                                </td>
                                <td class="style148">
                                    </td>
                                <td class="style46">
                                    </td>
                                <td class="style47">
                                    </td>
                            </tr>
                            <%--<tr>
                                <td class="style30">
                                    <b>วิชา :</b></td>
                                <td class="style40">
                                    <asp:TextBox ID="clsCourseAmt1" runat="server" Width="141px"></asp:TextBox>
                                    &nbsp;<strong><span class="style33">&nbsp;&nbsp; </span>
                                    </strong></td>

                                <td class="style30">
                                    <strong>วิชา :</strong></td>
                                <td class="style40">
                                    <asp:TextBox ID="clsCourseAmt" runat="server" Width="141px"></asp:TextBox>
                                    </td>
                                <td class="style24">
                                    <strong>วิชา :</strong></td>
                                <td>
                                    <asp:TextBox ID="clsCourseAmt0" runat="server" Width="141px"></asp:TextBox>
                                </td>
                            </tr>--%>
                            <tr>
                                <td class="style63">
                                    วิธีการจ่ายเงิน :</td>
                                <td class="style106" rowspan="4">
                                    
                                    <asp:CheckBoxList ID="payTypeCheckBox" runat="server" 
                                        onselectedindexchanged="empId_SelectedIndexChanged" AutoPostBack="True">
                                        <asp:ListItem Value="m">รายเดือน</asp:ListItem>
                                        <asp:ListItem Value="t">รายครั้ง</asp:ListItem>
                                        <asp:ListItem Value="h">รายชม.</asp:ListItem>
                                        <asp:ListItem Value="r">% ค่าลงทะเบียน</asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                                <td class="style151">
                                    <asp:TextBox ID="payMonthAmt" runat="server" Width="80px"></asp:TextBox>
                                    &nbsp;บาท.</td>
                                <td class="style161">
                                    OT:</td>
                                <td class="style155">
                                    <asp:TextBox ID="payRate1" runat="server" Width="50px"></asp:TextBox>
                                    <strong>%</strong></td>
                                <td class="style104">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style63">
                                    &nbsp;</td>
                                <td class="style151">
                                    <asp:TextBox ID="payTimeAmt" runat="server" Width="80px" ></asp:TextBox>
                                    &nbsp;บาท.</td>
                                <td class="style161">
                                    &nbsp;</td>
                                <td class="style155">
                                    &nbsp;</td>
                                <td class="style104">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style63">
                                    &nbsp;</td>
                                <td class="style151">
                                    <asp:TextBox ID="payHourAmt" runat="server" Width="80px" ></asp:TextBox>
                                    &nbsp;บาท.</td>
                                <td class="style161">
                                    &nbsp;</td>
                                <td class="style155">
                                    &nbsp;</td>
                                <td class="style104">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style90">
                                    &nbsp;</td>
                                <td class="style152">
                                    <asp:TextBox ID="payRate" runat="server" Width="50px"></asp:TextBox>
                                    <span class="style100"><strong>%</strong></span></td>
                                <td class="style162">
                                    &nbsp;</td>
                                <td class="style156">
                                    &nbsp;</td>
                                <td class="style105">
                                    </td>
                                <td class="style93">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style90">
                                </td>
                                <td class="style84">
                                    <asp:TextBox ID="checkStatus" runat="server"  Width="90px" style="display:none"></asp:TextBox>
                                </td>
                                <td class="style152">
                                </td>
                                <td class="style162">
                                </td>
                                <td class="style156">
                                </td>
                                <td class="style105">
                                </td>
                                <td class="style93">
                                </td>
                            </tr>
                            <tr>
                                <td class="style63">
                                    &nbsp;</td>
                                <td class="style106">
                                        <script type="text/javascript">
                                            $(Sys.Application.add_load(function () {
                                                var dateBefore = null;

                                                $("#ContentPlaceHolder1_payDate").datepicker({

                                                    changeMonth: true,
                                                    changeYear: true,
                                                    showOn: 'button',
                                                    isBuddhist: true,
                                                    buttonImage: 'images/formcal.gif',
                                                    buttonImageOnly: true
                                                    
                                                    

                                                });

                                            }));
                                    </script>
                                    </td>
                                <td class="style151">
                                    &nbsp;</td>
                                <td class="style161">
                                    &nbsp;</td>
                                <td class="style155">
                                    
                                    &nbsp;</td>
                                <td class="style104">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <%--<tr>
                                <td class="style30">
                                    ระดับ :</td>
                                <td class="style40">
                                    <asp:TextBox ID="clsCourseAmt2" runat="server" Width="141px"></asp:TextBox>
                                </td>
                                <td class="style41">
                                    <strong>ระดับ :</strong></td>
                                <td class="style27">
                                    <asp:TextBox ID="clsCourseAmt3" runat="server" Width="141px"></asp:TextBox>
                                </td>
                                <td class="style24">
                                    <strong>ระดับ :</strong></td>
                                <td>
                                    <asp:TextBox ID="clsCourseAmt4" runat="server" Width="141px"></asp:TextBox>
                                </td>
                            </tr>--%>
                            <tr>
                                <td class="style63">
                                    &nbsp;</td>
                                <td class="style106">
                                    &nbsp;</td>
                                <td class="style151">
                                    <asp:Button ID="CMD_INSERT" runat="server" onclick="CMD_INSERT_Click" 
                                        OnClientClick="return validate()" Text="  บันทึก  " Width="56px" />
                                    <asp:Button ID="CMD_EDIT" runat="server" onclick="CMD_EDIT_Click" 
                                        OnClientClick="return validate()" Text="แก้ไข" />
                                    <asp:Button ID="CMD_CLEAR" runat="server" onclick="CMD_CLEAR_Click" 
                                        Text="เคลียร์" />
                                </td>
                                <td class="style161">
                                    &nbsp;</td>
                                <td class="style155">
                                    &nbsp;</td>
                                <td class="style104">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style63">
                                    &nbsp;</td>
                                <td class="style106">
                                    &nbsp;</td>
                                <td class="style151">
                                    &nbsp;</td>
                                <td class="style161">
                                    &nbsp;</td>
                                <td class="style155">
                                    &nbsp;</td>
                                <td class="style104">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style63">
                                    &nbsp;</td>
                                <td class="style106">
                                    &nbsp;</td>
                                <td class="style151">
                                    &nbsp;</td>
                                <td class="style161">
                                    &nbsp;</td>
                                <td class="style155">
                                    &nbsp;</td>
                                <td class="style104">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </td>
                    <td class="style19">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style94">
                    </td>
                    <td class="style95">
                        </td>
                    <td class="style96">
                        </td>
                </tr>
                <tr>
                    <td class="style94">
                        </td>
                    <td class="style98">
                        แสดงรายการจ่ายเงิน</td>
                    <td class="style96">
                        </td>
                </tr>
                <tr>
                    <td class="style3">
                        &nbsp;</td>
                    <td class="style4">
                        <%--<asp:EntityDataSource ID="EntityDataSource1" runat="server" 
                        ConnectionString="name=essystemEntities"   
                        DefaultContainerName="essystemEntities" EnableDelete="True" 
                       AutoGenerateWhereClause="true" EnableInsert="True" EnableUpdate="True"   
                         EntitySetName="cls_register_detail"    > 
                        </asp:EntityDataSource>--%>
                        <asp:GridView ID="GridView12" runat="server" AutoGenerateColumns="False" 
                            DataKeyNames="pay_id" 
                            OnRowDataBound="GridView12_RowDataBound" OnRowDeleting="GridView12_RowDeleting" 
                            OnSelectedIndexChanged="GridView12_SelectedIndexChanged" Width="100%">
                            <AlternatingRowStyle BackColor="PaleGoldenrod" />
                            <Columns>
                                <asp:TemplateField HeaderText="ลำดับ">
                                    <HeaderTemplate>
                                        ลำดับ
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%#Container.DataItemIndex+1 %>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField Visible="false">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="HiddenField4" runat="server" Value='<%# Eval("pay_id") %>' 
                                            Visible="false" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="รหัสจ่ายเงิน">
                                    <ItemTemplate>
                                        <asp:Label ID="pay_code" runat="server" 
                                            Text='<%# DataBinder.Eval(Container, "DataItem.pay_code") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--<asp:BoundField DataField="cls_name" HeaderText="ประเภทการจ่าย"
                                    ItemStyle-HorizontalAlign="left">
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField >
                                <asp:BoundField DataField="level" HeaderText="ระดับ"
                                    ItemStyle-HorizontalAlign="left">
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField >
                                <asp:TemplateField HeaderText="ชั่วโมงเรียน">
		                            <ItemTemplate>
			                            <asp:Label id="emp_cls_hours" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.emp_cls_hours") %>'></asp:Label>
		                            </ItemTemplate>
		                            <EditItemTemplate>
			                            <asp:TextBox id="txtEditEmpClsHours" size="6" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.emp_cls_hours") %>'></asp:TextBox>
		                            </EditItemTemplate>
		                            <FooterTemplate>
			                            <asp:TextBox id="txtAddEmpClsHours" size="6" runat="server"></asp:TextBox>
			                            
		                            </FooterTemplate>
	                            </asp:TemplateField>
                                <asp:TemplateField HeaderText="ชั่วโมงเรียนทั้งหมด">
		                            <ItemTemplate>
			                            <asp:Label id="emp_cls_total_hours" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.emp_cls_total_hours") %>'></asp:Label>
		                            </ItemTemplate>
		                            <EditItemTemplate>
			                            <asp:TextBox id="txtEditEmpClsTotalHours" size="6" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.emp_cls_total_hours") %>'></asp:TextBox>
		                            </EditItemTemplate>
		                            <FooterTemplate>
			                            <asp:TextBox id="txtAddEmpClsTotalHours" size="6" runat="server"></asp:TextBox>
			                            
		                            </FooterTemplate>
	                            </asp:TemplateField>--%>
                                <asp:TemplateField HeaderText="วิธีจ่ายเงิน">
                                    <ItemTemplate>
                                        <asp:Label ID="pay_type" runat="server" 
                                            Text='<%# DataBinder.Eval(Container, "DataItem.pay_type") %>'></asp:Label>
                                    </ItemTemplate>
                                    <%--<EditItemTemplate>
			                            <asp:TextBox id="txtEditPayType" size="6" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.pay_type") %>'></asp:TextBox>
		                            </EditItemTemplate>
		                            <FooterTemplate>
			                            <asp:TextBox id="txtAddEmpClsTotalHours" size="6" runat="server"></asp:TextBox>
			                            
		                            </FooterTemplate>--%></asp:TemplateField>
                                <%--<asp:TemplateField HeaderText="ค่าสอน">
                                    <ItemTemplate>
                                        <asp:Label ID="pay_salary0" runat="server" 
                                            Text='<%# DataBinder.Eval(Container, "DataItem.pay_salary") %>'></asp:Label>
                                    </ItemTemplate>--%>
                                    <%--<EditItemTemplate>
			                            <asp:TextBox id="txtEditEmpClsSal" size="6" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.emp_cls_sal") %>'></asp:TextBox>
		                            </EditItemTemplate>
		                            <FooterTemplate>
			                            <asp:TextBox id="txtAddEmpClsSal" size="6" runat="server"></asp:TextBox>
			                            
		                            </FooterTemplate></asp:TemplateField>--%>
                                <%--<asp:TemplateField HeaderText="วันที่บักทึก">
		                            <ItemTemplate>
			                            <asp:Label id="pay_date" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}",Eval("pay_date")) %>' ></asp:Label>
		                            </ItemTemplate>
		                            
	                            </asp:TemplateField>--%>
                                
                                <asp:TemplateField HeaderText="รายเดือน">
		                            <ItemTemplate>
			                            <asp:Label id="pay_month_amt" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.pay_month_amt") %>'></asp:Label>
		                            </ItemTemplate>
		                            <%--<EditItemTemplate>
			                            <asp:TextBox id="txtEditEmpClsSalMonth" size="6" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.emp_cls_sal_month") %>'></asp:TextBox>
		                            </EditItemTemplate>
		                            <FooterTemplate>
			                            <asp:TextBox id="txtAddEmpClsSalMonth" size="6" runat="server"></asp:TextBox>
			                            
		                            </FooterTemplate>--%>
	                            </asp:TemplateField>
                                <asp:TemplateField HeaderText="รายครั้ง">
		                            <ItemTemplate>
			                            <asp:Label id="pay_time_amt" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.pay_time_amt") %>'></asp:Label>
		                            </ItemTemplate>
		                            <%--<EditItemTemplate>
			                            <asp:TextBox id="txtEditEmpClsSalDay" size="6" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.emp_cls_sal_day") %>'></asp:TextBox>
		                            </EditItemTemplate>
		                            <FooterTemplate>
			                            <asp:TextBox id="txtAddEmpClsSalDay" size="6" runat="server"></asp:TextBox>
			                            
		                            </FooterTemplate>--%>
	                            </asp:TemplateField>
                                <asp:TemplateField HeaderText="รายชั่วโมง">
		                            <ItemTemplate>
			                            <asp:Label id="pay_hour_amt" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.pay_hour_amt") %>'></asp:Label>
		                            </ItemTemplate>
		                            <%--<EditItemTemplate>
			                            <asp:TextBox id="txtEditEmpClsSalHours" size="6" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.emp_cls_sal_hours") %>'></asp:TextBox>
		                            </EditItemTemplate>
		                            <FooterTemplate>
			                            <asp:TextBox id="txtAddEmpClsSalHours" size="6" runat="server"></asp:TextBox>
			                            
		                            </FooterTemplate>--%>
	                            </asp:TemplateField>
                                
                                <asp:BoundField DataField="emp_name" HeaderText="ชื่อครู"
                                    ItemStyle-HorizontalAlign="left">
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField >
                                <asp:BoundField DataField="emp_position" HeaderText="ต่ำแหน่ง"
                                    ItemStyle-HorizontalAlign="left">
                                    <ItemStyle HorizontalAlign="Left" /> 
                                </asp:BoundField >
                                <asp:CommandField ButtonType="Image" HeaderText="แก้ไข" 
                                    ItemStyle-HorizontalAlign="Center" SelectImageUrl="~/Pages/images/icon_15.gif" 
                                    ShowSelectButton="True">
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:CommandField>
                                <asp:CommandField ButtonType="Image" 
                                    DeleteImageUrl="~/Pages/images/icon_del.gif" DeleteText="" HeaderText="ลบ" 
                                    ItemStyle-HorizontalAlign="Center" SelectImageUrl="~/Pages/images/icon_del.gif" 
                                    ShowDeleteButton="True">
                                <ItemStyle HorizontalAlign="Center" />
                                </asp:CommandField>
                                <%--<asp:TemplateField HeaderText="ลบ" ItemStyle-HorizontalAlign="Center" 
                                              ShowHeader="False">
                                   <ItemTemplate>
                                        <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" 
                                        CommandName="Delete" ImageUrl="~/Pages/images/icon_del.gif" 
                                        Text="Delete" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>--%>
                            </Columns>
                            <EditRowStyle BackColor="#2461BF" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>
                    </td>
                    <td class="style19">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style3">
                        &nbsp;</td>
                    <td class="style4">
                        &nbsp;</td>
                    <td class="style19">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style3">
                        &nbsp;</td>
                    <td class="style20">
                        <table cellpadding="0" cellspacing="0" class="style15">
                            <tr>
                                <td class="style63">
                                    &nbsp;</td>
                                <td class="style73">
                                    &nbsp;&nbsp;</td>
                                <td class="style27">
                                    &nbsp;</td>
                                <td class="style24">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </td>
                    <td class="style19">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style3">
                        &nbsp;</td>
                    <td class="style4">
                        &nbsp;</td>
                    <td class="style19">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style3">
                        &nbsp;</td>
                    <td class="style4">
                        &nbsp;</td>
                    <td class="style19">
                        &nbsp;</td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
     <br />
 
</asp:Content>